package com.infore.service.impl;

import com.infore.dao.UserDao;
import com.infore.entity.User;
import com.infore.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author:wk
 * @date:Created in 15:23 2017\11\21 0021
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    public List<String> getAllUsernames() {
        List<String> users = new ArrayList<String>();
        users.add("MarK");
        users.add("Ken");
        users.add("Fowafolo");
        return users;
    }

    public List<User> getAllUsername() {
        return userDao.findAll1();
    }
}
